import Vue from "vue";
import Router from "vue-router";
import Index from "./views/index/Index";
import Login from "./views/login/Login";
import Rigister from "./views/register/Rigister";

Vue.use(Router);

export default new Router({
  mode: "history",
  base: process.env.BASE_URL,
  routes: [
    {
      path: "/",
      name: "index",
      component: Index
    },
    {
      path: "/login",
      name: "login",
      component: Login
    },
    {
      path: "/rigister",
      name: "rigister",
      component: Rigister
    }
  ]
});
